---
title: clsHearingLocationManager maintenance
summary: hearing location maintenance
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
operation_id: OP-007
trigger: hearing location maintenance
---

# clsHearingLocationManager maintenance

Hearing location maintenance.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-007 |
| **Trigger** | hearing location maintenance |
| **Inputs** | Current manager state, current claim/case context, and any workflow-specific parameters or collections. |
| **Outputs** | Updated collections, messages, or side effects specific to the operation. |
| **Primary components** | `clsHearingLocationManager` |
| **Entry point** | `SAIF.Application.Claim.Legal\clsHearingLocationManager.vb` |

## Steps

1. Load hearing location codes (inline SQL, cached).
2. `InsertNewLocation` defaults `RequiresFullDayFlag = False`, `RotationFlag = False`, `CreateDate = Today`, `CreateUser = DPI.UserID`, and invalidates the `LocationCode` cache entry.
3. `DeleteLocation` is guarded by `CanDeleteLocation`.

- Primary rules: [BR-050](../business-rules.md#br-050-new-hearing-locations-default-requiresfulldayflag-false-rotationflag-false-createdate-today-createuser-dpi-userid), [BR-051](../business-rules.md#br-051-a-hearing-location)

## Failure and edge-case behavior

- Failures surface as manager messages or blocked workflow actions specific to the source operation.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
  Start([Trigger]) --> S1[Load current state]
  S1 --> S2[Apply operation rules]
  S2 --> D{"Validation or security<br>issue?"}
  D -->|Yes| EndErr(["Return message or block<br>action"])
  D -->|No| EndOk(["Return updated workflow<br>state"])
```

## Related documentation
- [Index](../index.md)
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [Security and authorization](../security-authorization.md)
- [Database tables](../database-tables.md)
- [SQL catalog](../sql/index.md)
- [Procedures](../procedures/index.md)
- [API reference](../api/index.md)

## Sources
- SAIF.Application.Claim.Legal\clsHearingLocationManager.vb
